<?php

namespace common\models\forms;
use Yii;
use yii\base\Model;

class Wxapp extends Model
{
    /**
     * @var string application name
     */
    public $name;

    /**
     * @var string admin email
     */
    public $description;
    public $original;
    public $AppId;
    public $AppSecret;
    public $headimg;

    /**
     * @inheritdoc
     */
    public function rules(): array
    {
        return [
            [[
                'name',
                'description',
                'original',
                'AppId',
                'AppSecret',
                'headimg',
            ], 'required'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels(): array
    {
        return [
           'name'=>'小程序名称',
            'description'=>'小程序描述',
            'original'=>'原始id',
            'AppId'=>'AppId',
            'AppSecret'=>'AppSecret',
            'headimg'=>'头像',
        ];
    }
}
